﻿//using System;
//using System.Collections.Generic;
//using System.Linq;
//using System.Text;
//using Microsoft.Xna.Framework;

//namespace MinimizeEngine.Entities.Primitives
//{
//    public class MECube : MEBasePrimitive
//    {

//        #region Initialization

//        /// <summary>
//        /// Constructs a new Cube
//        /// </summary>
//        /// <param name="size">Size of the Cube</param>
//        public MECube(Vector3 scale)
//        {
//            Vector3[] normals = 
//            {
//                new Vector3(0, 0, 1),
//            };

//            //Create the Cube
//            foreach (Vector3 normal in normals)
//            {
//                Vector3 side1 = new Vector3(normal.Y, normal.Z, normal.X);
//                Vector3 side2 = Vector3.Cross(normal, side1);

//                //There are six Indices per face.
//                AddIndex(CurrentVertexCount + 0);
//                AddIndex(CurrentVertexCount + 1);
//                AddIndex(CurrentVertexCount + 2);

//                AddIndex(CurrentVertexCount + 0);
//                AddIndex(CurrentVertexCount + 2);
//                AddIndex(CurrentVertexCount + 3);

//                //There are four Vertices per face
//                AddVertex((normal - side1 - side2), normal);
//                AddVertex((normal - side1 + side2), normal);
//                AddVertex((normal + side1 + side2), normal);
//                AddVertex((normal + side1 - side2), normal);

//                Initialize();
//            }
//        }

//        #endregion

//    }
//}
